package com.neulogistics.core.substation.api.application.command;

import com.blackto.lib.mediat.unicast.IRequest;
import com.neulogistics.core.substation.domain.model.valueobject.Address;
import com.neulogistics.infrastructure.common.serviceresult.BaseResponse;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@Data
public class CreateSubstationCommand implements IRequest<BaseResponse<String>> {

    /**
     * 所属库房id
     */
    @Positive
    @NotNull
    public Integer subWarehouseId;

    /**
     * 分站名
     */
    public String substationName;

    /**
     * 分站地址
     */
    public Address substationAddress;
}
